<template>
    <div class="login-wrap"></div>
</template>

<script>
export default {
    data: function () {
        return {
            token: ''
        };
    },
    methods: {
        async getCode() {
            this.token = this.$route.query.token;
            this.$store.commit('handletoken', res.data.token)
            localStorage.setItem("token", this.token)
            this.$router.push('/')
        }
    },
    created() {
        localStorage.removeItem("token");
        this.getCode();
    }
};
</script>